package com.easthome.security.custom;

/**
 * @description:
 * @author: 朱敦宇
 * @time: 2023/11/22 13:49
 */

public class LoginUserHelper {
    private static ThreadLocal<Long> userId =new ThreadLocal<Long>();
    private static ThreadLocal<String> userName =new ThreadLocal<String>();

    public static ThreadLocal<Long> getUserId() {
        return userId;
    }

    public static void setUserId(Long userId) {
        LoginUserHelper.userId.set(userId);
    }

    public static ThreadLocal<String> getUserName() {
        return userName;
    }

    public static void setUserName(String userName) {
        LoginUserHelper.userName.set(userName);
    }
}
